/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.test_finder;

import picounit.util.ClassMarker;
import previous.picounit.TestCase;

public class NoTestFoundExceptionTest extends TestCase {
	public void testGetMessage() {
		verify.that(noTestsFoundException().getMessage())
			.isEqualTo("No tests found");
	}

	public void testEquals() {
		verify.that(noTestsFoundException())
			.isEqualTo(noTestsFoundException());
	}

	///////////////////////////////////////////////////////////////////////////////////////////////
	// Implementation methods
	///////////////////////////////////////////////////////////////////////////////////////////////
	
	private NoTestsFoundException noTestsFoundException() {
		return new NoTestsFoundException(new ClassMarker(picounit.Test.class));
	}
}
